<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>array</title>
</head>
<body>
<p>遍历数组</p>
<ul>
    <li th:each="name:${names}" th:text="${name}"></li>
</ul>
</body>
</html>